const router = require('koa-router')()


module.exports = (app) => {
  router.post('/user/login',require('./user').login)
  router.post('/user/register',require('./user').register)
  router.post('/user/searchUser',require('./user').searchUser)
  router.post('/user/searchFriend',require('./user').searchFriend)
  router.post('/user/sendFriendRequest',require('./user').sendFriendRequest)
  router.post('/user/getFriendRequestList',require('./user').getFriendRequestList)
  router.post('/user/precessFriendRequest',require('./user').precessFriendRequest)
  router.post('/user/editRemarksName',require('./user').editRemarksName)
  router.post('/user/getChatRecord',require('./user').getChatRecord)
  router.post('/user/sendMessage',require('./user').sendMessage)
  router.post('/user/getChatList',require('./user').getChatList)
  router.post('/user/uploadFiles',require('./user').uploadFiles)
  router.post('/user/editFilesDetail',require('./user').editFilesDetail)
  router.post('/user/downloadFiles',require('./user').downloadFiles)
  
  app
    .use(router.routes())
    .use(router.allowedMethods())
}